package mule.model;

//<editor-fold defaultstate="collapsed" desc="Imports">

import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.scene.image.Image;

//</editor-fold>

/**
 * A child of Tile that has a specific maximum level of resources.
 * 
 * @author stephen
 */
public class MountainOneTile extends Tile
{
    //<editor-fold defaultstate="collapsed" desc="Constructor">

    /**
     * Constructor for the mountain one tile, with 1 food, 1 energy, and 2 ore
     * maximum productions
     */
    public MountainOneTile()
    {
        super.canPurchase = new SimpleBooleanProperty( true );
        super.maxFoodProduction = new SimpleIntegerProperty( 1 );
        super.maxEnergyProduction = new SimpleIntegerProperty( 1 );
        super.maxOreProduction = new SimpleIntegerProperty( 2 );
        super.name = new SimpleStringProperty( "mountainOne" );
        super.image = new Image( "mule/model/images/mountain_one_tile.png" );
    }

    //</editor-fold>


    //<editor-fold defaultstate="collapsed" desc="Getters and Setters">

    /**
     * Returns the image that this tile is displaying
     * 
     * @return an image that will be displayed on the tile
     */
    public Image getImage()
    {
        return image;
    }

    /**
     * Gets the image of a food factory on this tile
     * 
     * @return an image of this tile with a food factory
     */
    public Image getFoodImage()
    {
        return new Image( "mule/model/images/mountain_one_tile_food.png" );
    }

    /**
     * Gets the image of an energy factory on this tile
     * 
     * @return an image of this tile with an energy factory
     */
    public Image getEnergyImage()
    {
        return new Image( "mule/model/images/mountain_one_tile_energy.png" );
    }

    /**
     * Gets the image of an ore factory on this tile type
     * 
     * @return an image of this tile with an ore factory
     */
    public Image getOreImage()
    {
        return new Image( "mule/model/images/mountain_one_tile_ore.png" );
    }

    //</editor-fold>
}
